<!-- Author:Rain -->

<template>
    <div data-v-132c1892="" class="new-guide-common__cont">
        <div data-v-132c1892="" class="new-guide-common__title"> 个人优势 5/6 </div>
        <div data-v-132c1892="" class="new-guide-common__progress">
            <div data-v-132c1892="" class="new-guide-common__progress-inner" style="width: 410px;"></div>
        </div>
        <div data-v-132c1892="" class="page-loading" style="display: none;">正在加载中...</div>
        <div data-v-14334fc8="" data-v-132c1892="" class="new-guide-personal-advantage">
            <form data-v-14334fc8="" autocomplete="off" class="ui-form ui-form-label-top">
                <div data-v-14334fc8="" class="have-desc guide-desc form-item form-item-required form-item-error"
                    ka="personal-advantage"><!---->
                    <div class="item-content">
                        <div data-v-14334fc8="" class="serial-selecter">
                            <div class="serial-toolbar" style="display: none;"><span class="serial-btn ti-list"><i
                                        class="tip">无序列表</i></span><span class="serial-btn ti-list-ol"><i
                                        class="tip">有序列表</i></span></div>
                            <div class="ipt-wrap">
                                <div class="input-wrap input-wrap-textarea"><textarea wrap="soft" v-model="yourself"
                                        autocomplete="on" spellcheck="false" placeholder="用1～2句话向Boss快速介绍自己，您可以总结一下之前的工作成果，
                                    也可以向 boss 展示您擅长的工作技能和方向" rows="8" class="input"></textarea><span
                                        class="suffix-counter"><em class="">0</em>/200</span><!----></div>
                            </div>
                        </div><!----><!---->
                    </div>
                </div>
            </form>
        </div>
    </div>
</template>

<script setup lang="ts">
let yourself = ref("")


onActivated(() => {
    // 调用时机为首次挂载
    // 以及每次从缓存中被重新插入时
    let guideInfo = JSON.parse(localStorage.getItem("guideInfo") as string)
    //去本地存储中把数据取出来！！！
    let { "guide-5": guide5 } = guideInfo
    yourself.value = guide5.advantage
})


onDeactivated(() => {
    //写入本地存储
    let guideInfo = JSON.parse(localStorage.getItem("guideInfo") as string)
    guideInfo["guide-5"] = {
        advantage: yourself.value
    }
    localStorage.setItem("guideInfo", JSON.stringify(guideInfo))
})

</script>

<style scoped>
@import url("@/assets/guideCommon.css");
</style>